﻿using PowerHub.MES.DTO.BasicData.QueryDto;
using PowerHub.MES.DTO.Shopfloor.QueryDTO;
using PowerHub.MES.Entities.BasicData;
using PowerHub.MES.Entities.Shopfloor;
using PowerHub.MES.ReturnEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PowerHub.MES.IRepository.IShopfloor
{
    /// <summary>
    /// 车间数据接口层
    /// </summary>
    public interface IShopfloor_WorkshopinfoRepository
    {
        /// <summary>
        /// 获取车间列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationPageResult<List<Shopfloor_Workshopinfo>>> GetShopfloor_WorkshopinfoPageListAsync(QueryShopfloor_WorkshopinfoDTO query);

        /// <summary>
        /// 添加车间
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> CreateShopfloor_WorkshopinfoAsync(Shopfloor_Workshopinfo query);

        /// <summary>
        /// 批量删除车间
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> DeletionShopfloor_WorkshopinfoAsync(List<string>? ids);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> UpdateShopfloor_WorkshopinfoAsync(Shopfloor_Workshopinfo query);

    }
}
